<?php
print '<table border=1, caption=studenti>';
echo '<tr><td><h3><b>ID</h3></td><td><h3><b>NOME DIPARTIMENTO</h3></td>
		<td><h3><b>NOME DIRETTORE</h3></td><td><h3><b>COGNOME DIRETTORE</h3></td>
		<td><h3><b>ANNO INCARICO</h3></td><tr/>';
foreach($dipartimento as $d):
echo '<tr><td>'.$d['id'].'</td><td>'.$d['nome'].'</td><td>'.$d['docnome'].'</td>
		<td>'.$d['cognome'].'</td><td>'.$d['id_anno'].'</td><tr/>';

endforeach;
print '</table>';?>